package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("elder_info")
public class ElderInfo {
    @TableId(value = "elderly_id", type = IdType.AUTO)
    private Long elderlyId;

    private String name;

    private Short gender;

    private Short age;

    @TableField("health_status")
    private Short healthStatus;

    @TableField("caregiver_id")
    private Long caregiverId;

    @TableField(exist = false)
    private CaregiverInfo caregiver;

    @TableField("cs_manager_id")
    private Long csManagerId;

    public Long getCaregiverId() {
        return caregiverId;
    }

    public void setCaregiverId(Long caregiverId) {
        this.caregiverId = caregiverId;
    }

    public Long getCsManagerId() {
        return csManagerId;
    }

    public void setCsManagerId(Long csManagerId) {
        this.csManagerId = csManagerId;
    }

    @TableField(exist = false)
    private Employee csManager;

    @TableField("is_deleted")
    private Short isDeleted;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Short getGender() {
        return gender;
    }

    public void setGender(Short gender) {
        this.gender = gender;
    }

    public Short getAge() {
        return age;
    }

    public void setAge(Short age) {
        this.age = age;
    }

    public Short getHealthStatus() {
        return healthStatus;
    }

    public void setHealthStatus(Short healthStatus) {
        this.healthStatus = healthStatus;
    }

    public CaregiverInfo getCaregiver() {
        return caregiver;
    }

    public void setCaregiver(CaregiverInfo caregiver) {
        this.caregiver = caregiver;
    }

    public Employee getCsManager() {
        return csManager;
    }

    public void setCsManager(Employee csManager) {
        this.csManager = csManager;
    }

    public Short getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Short isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}